<#import "/spring.ftl" as spring />
<#assign display=JspTaglibs["/WEB-INF/tlds/displaytag.tld"]/>
<html>
<head>
    <title><@spring.message "course.details"/></title>
</head>
<body>
<h1><@spring.message "course.details"/></h1>

<div>
    <a href="viewAll.htm"><@spring.message "entity.viewAll"/></a>
</div>
<div class="marginTop infoBox">
    <table cellspacing="0" cellpadding="0">
        <tbody>
        <tr>
            <th><@spring.message "entity.name"/>:</th>
            <td>${entity.name}</td>
        </tr>
        <tr>
            <th><@spring.message "memberClub"/>:</th>
                <td>${entity.memberClub.guiDescription}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.modificationTime"/>:</th>
            <td>${entity.modificationTime?datetime}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.creationTime"/>:</th>
            <td>${entity.creationTime?datetime}</td>
        </tr>
        </tbody>
    </table>
</div>
<div class="marginTop"></div>
<h2><@spring.message "hole.holes"/></h2>

<div>
    <a href="../hole/create.htm?id=${entity.id}"><@spring.message "entity.createNew"/>&nbsp;<@spring.message "hole"/></a>

    <div class="clearFloat"></div>
</div>
<div class="marginTop">
<@display.table name="entity.holes" id="entity" pagesize=20 class="listingTable">
<@display.column title="#" property="orderOnCourse" sortable=true/>
<@display.column title="Index" property="slopeIndex" sortable=true/>
<@display.column title="Par" property="par" sortable=true/>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../hole/view.htm?id=${entity.id}">View</a></@display.column>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../hole/edit.htm?id=${entity.id}">Edit</a></@display.column>
</@display.table>
</div>
</body>
</html>